package org.flexlancer.databases
{
	public class AlertActions
	{
		private static const TABLE:String = "alertactions";

		public static function List(condition:String = ""):Array{
			try{
				return DatabaseManager.Manager.Select(TABLE,null,condition);
			}catch(err:Error){
				throw err;
			}
			return new Array();
		}
		
		public static function Add(parmAction:String):void{
			try{
				var insert:Object = new Object();
				insert.action = " '"+parmAction+"' ";
				DatabaseManager.Manager.Insert(TABLE,insert);
			}catch(err:Error){
				throw err;
			}
		}
				
		public static function Delete(condition:String = ""):void{
			try{
				DatabaseManager.Manager.Delete(TABLE,condition);
			}catch(err:Error){
				throw err;
			}
		}
	}
}